package com.ruoyi.recipe.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 食谱收藏对象 recipe_collect
 * 
 * @author ruoyi
 * @date 2024-11-23
 */
public class RecipeCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 食谱ID */
    private Long dishId;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openId;

    /** 食谱名称 */
    @Excel(name = "食谱名称")
    private String dishName;

    /** 食谱标题 */
    @Excel(name = "食谱标题")
    private String dishTitle;

    /** 食谱描述 */
    @Excel(name = "食谱描述")
    private String dishContent;

    /** 食谱图片 */
    @Excel(name = "食谱图片")
    private String dishPic;

    /** 点赞数量 */
    @Excel(name = "点赞数量")
    private Integer likesCount;

    /** 是否被收藏 */
    private boolean isCollect;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setDishId(Long dishId) 
    {
        this.dishId = dishId;
    }

    public Long getDishId() 
    {
        return dishId;
    }

    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    public void setDishName(String dishName)
    {
        this.dishName = dishName;
    }

    public String getDishName()
    {
        return dishName;
    }

    public void setDishTitle(String dishTitle)
    {
        this.dishTitle = dishTitle;
    }

    public String getDishTitle()
    {
        return dishTitle;
    }

    public void setDishContent(String dishContent)
    {
        this.dishContent = dishContent;
    }

    public String getDishContent()
    {
        return dishContent;
    }

    public void setDishPic(String dishPic)
    {
        this.dishPic = dishPic;
    }

    public String getDishPic()
    {
        return dishPic;
    }

    public void setLikesCount(Integer likesCount)
    {
        this.likesCount = likesCount;
    }

    public Integer getLikesCount()
    {
        return likesCount;
    }

    public boolean getIsCollect() {
        return isCollect;
    }

    public void setIsCollect(boolean isCollect) {
        this.isCollect = isCollect;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("dishId", getDishId())
            .append("openId", getOpenId())
            .append("dishName", getDishName())
            .append("dishTitle", getDishTitle())
            .append("dishContent", getDishContent())
            .append("dishPic", getDishPic())
            .append("likesCount", getLikesCount())
            .toString();
    }
}
